package collection;

import ooday03.Inte;

import java.util.*;

public class SortInteger {
    public static void main(String[] args) {
        Random ran=new Random();
        List<Integer> list=new ArrayList<>();
        for(int i=0;i<10;i++){
            list.add(ran.nextInt(100));

        }
        System.out.println(list);
        Collections.sort(list);
        System.out.println(list);
        Collections.reverse(list);
        System.out.println(list);
        List<Integer> list2 =list.subList(3,6);
       int a= Collections.indexOfSubList(list,list2);
       //Collections.max(,)
        System.out.println(a);

    }
}
